package cn.ronghuanet;

import cn.ronghuanet.base.listener.PermissionScanListener;
import lombok.AllArgsConstructor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@MapperScan("cn.ronghuanet.*.mapper")
@ServletComponentScan("cn.ronghuanet.base.listener")// 扫描监听器
public class PlatFormAppStart {

    public static void main(String[] args) {

        SpringApplication.run(PlatFormAppStart.class,args);
    }

}
